#ifndef find_way_hpp
#define find_way_hpp

#define UNVISITED_FIELD -1

#include "map.hpp"

class cFindWay
{
    private:
        int ** tile;
        void prepareTile(sPoint * size);
        void optimizeWay(std::vector <sPoint> &way, cMap * map);//optymalizuje sciezke

    public:
        std::vector <sPoint> findWay(cMap * map, sPoint start, sPoint end);
        bool obstacleBetweenPoints(sPoint a, sPoint b, cMap * map);//sprawdza czy pomiedzy punktami a i b jest jakas sciana
        bool checkCollision(cMap * map, sPoint *pos);
};

#endif
